<script>
	import Vue from 'vue';
	import API from 'api/api.js';
	
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
			//获取app配置
			var systemInfo = uni.getSystemInfoSync()
			var appId = systemInfo.appId
			console.log(systemInfo)
			API.getAppConfig(appId).then(res => {
				console.log(res)
					// this.$u.vuex('appconfig', res[0])
				})
				.catch(err => {
					console.log(err)
				})
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
</style>
